<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-09-13 08:48:36
 * @Description: 租户下门店可管理其他门店权限表
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-09-13 09:21:19
 * @FilePath: /qingshanERP/database/migrations/qingshanerp/2021_09_13_084836_create_shop_to_shop_table.php
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateShopToShopTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_to_shop', function (Blueprint $table) {
            $table->foreignId('shop_id')->default(0)->comment('管理者id');
            $table->foreignId('shop2_id')->default(0)->comment('被管理者id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('shop_to_shop', function (Blueprint $table) {
            //
        });
    }
}
